<!--
 * Description: FD 基本信息
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Qiuxue.Wu
 * Date: 2020/06/10 16:00
-->

<template>
  <div>
    <!--数据表单-->
    <el-form
      label-position="left"
      label-width="140px"
      :model="inputData"
      size="mini"
      style="margin-top: 10px"
    >
      <!-- ---------------FD基本信息START------------------ -->
      <el-row>
        <el-col :span="24">
          <el-form-item
            label="RFQ基本信息"
            label-width="160px"
            style="background: #c9d2ca;padding-left:20px"
          />
        </el-col>
      </el-row>
      <el-row style="padding-left:20px">
        <!--RFQ编号-->
        <el-col :span="6">
          <el-form-item label="RFQ ID">
            <span>{{ inputData.rfqId }}</span>
          </el-form-item>
        </el-col>

        <!--RFQ版本-->
        <el-col :span="6">
          <el-form-item label="RFQ版本">
            <span>{{ inputData.version }}</span>
          </el-form-item>
        </el-col>

        <!-- solution -->
        <el-col :span="6">
          <el-form-item label="Solution">
            <span>{{ inputData.solution }}</span>
          </el-form-item>
        </el-col>

        <!--bu类型-->
        <el-col :span="6">
          <el-form-item label="Bu类型">
            <span>{{ inputData.bu }}</span>
          </el-form-item>
        </el-col>

        <!--RFQ名称-->
        <el-col :span="6">
          <el-form-item label="RFQ名称">
            <span>{{ inputData.rfqName }}</span>
          </el-form-item>
        </el-col>

        <!--tempModel-->
        <el-col :span="6">
          <el-form-item label="TempModel">
            <span>{{ inputData.tempModel }}</span>
          </el-form-item>
        </el-col>

        <!--tempModelNumber-->
        <el-col :span="6">
          <el-form-item label="TempModelNumber">
            <span>{{ inputData.tempModelNumber }}</span>
          </el-form-item>
        </el-col>

        <!--平台-->
        <el-col :span="6">
          <el-form-item label="平台">
            <span>{{ inputData.platform }}</span>
          </el-form-item>
        </el-col>

        <!--屏幕尺寸-->
        <el-col :span="6">
          <el-form-item label="屏幕尺寸">
            <span>{{ inputData.lcd }}</span>
          </el-form-item>
        </el-col>

        <!--描述-->
        <el-col :span="6">
          <el-form-item label="描述">
            <span>{{ inputData.description }}</span>
          </el-form-item>
        </el-col>

        <!--专案PBM负责人列-->
        <el-col :span="6">
          <el-form-item :label="$t('rfq.owner')">
            <span>
              {{ $store.getters['user/getUserNameById'](inputData.pbmOwner) || $t('result.none') }}
            </span>
          </el-form-item>
        </el-col>

        <!--创建时间-->
        <el-col :span="6">
          <el-form-item :label="$t('FdData.createTime')">
            <span>{{ inputData.createTime }}</span>
          </el-form-item>
        </el-col>

        <!--修改人-->
        <el-col :span="6">
          <el-form-item :label="$t('FdData.modifyUser')">
            <span>{{ $store.getters['user/getUserNameById'](inputData.modifyUser) }}</span>
          </el-form-item>
        </el-col>

        <!--修改人岗位-->
        <!-- <el-col :span="6">
          <el-form-item :label="$t('FdData.modifyPost')">
            <span>{{ $store.getters['post/getPostNameById'](inputData.modifyPost) }}</span>
          </el-form-item>
        </el-col> -->

        <!--修改时间-->
        <el-col :span="6">
          <el-form-item :label="$t('FdData.modifyTime')">
            <span>{{ inputData.modifyTime }}</span>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'RfqDataBaseView',
  props: {
    inputData: {
      type: Object,
      default: () => {}
    }
  }
}
</script>

<style scoped>
.el-form-item__content span {
  margin-left: 5px;
  color: blue;
}
</style>
